import request from '@/utils/request'

// 查询借阅信息列表
export function listBorrowinfo(query) {
  return request({
    url: '/book/borrowinfo/list',
    method: 'get',
    params: query
  })
}

// 查询借阅信息详细
export function getBorrowinfo(id) {
  return request({
    url: '/book/borrowinfo/' + id,
    method: 'get'
  })
}

// 新增借阅信息
export function addBorrowinfo(data) {
  return request({
    url: '/book/borrowinfo',
    method: 'post',
    data: data
  })
}

// 修改借阅信息
export function updateBorrowinfo(data) {
  return request({
    url: '/book/borrowinfo',
    method: 'put',
    data: data
  })
}

// 删除借阅信息
export function delBorrowinfo(id) {
  return request({
    url: '/book/borrowinfo/' + id,
    method: 'delete'
  })
}


export function listBookinfo(query) {
  return request({
    url: '/book/bookinfo/listBookinfo',
    method: 'get',
    params: query
  });
}
